Rotten Green Test ^^^^^ **Definition:** * A test that passes (is green) but contains assertions that are never executed **Code Example:** .. code-block:: java @Test public void testListWindowsNewBucket() throws Exception { . . . BucketLeapArray leapArray = new BucketLeapArray(sampleCount, intervalInMs); . . . . List> list = leapArray.list(); for (WindowWrap wrap : list) { assertTrue(windowWraps.contains(wrap)); } . . . . } **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `Automatic generation of smell-free unit tests `_ :octicon:`file-code;1em` :octicon:`comment-discussion;1em` * `Detection of test smells with basic language analysis methods and its evaluation `_ :octicon:`comment-discussion;1em` :octicon:`graph;1em` * `JTDog: a Gradle Plugin for Dynamic Test Smell Detection `_ :octicon:`comment-discussion;1em` * `RTj: a Java framework for detecting and refactoring rotten green test cases `_ :octicon:`file-code;1em` :octicon:`comment-discussion;1em` :octicon:`graph;1em` :octicon:`sync;1em` * `Test Smell Detection Tools: A Systematic Mapping Study `_